package org.luxor.html.constant;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 常量定义
 *
 * @author Mr.Yan  @time 2019/9/19
 */
@Component
public class BaseConstant {

    /**
     * 默认的应用编号
     */
    public static String DEFAULT_APP_ID;

    @Value("${luxor.appid.default:ww371f8c7351603469}")
    public void setDefaultAppId(String defaulAppId) {
        BaseConstant.DEFAULT_APP_ID = defaulAppId;
    }

    /**
     * 响应成功的消息
     */
    public static final String SUCCESS_MSG = "success";

    /**
     * 临时参数的redis过期时长(1分钟)
     */
    public static final Integer TEMP_PARAM_TIMEOUT = 1 * 60;

}
